<?php 
namespace Home\Model;
use Think\Model;
class VercodeModel extends Model {

	public function getOne()
	{
		$sql = "select * from vercode order by rand() limit 1";
		$res = M()->query($sql);

		$res = current($res);

		$_SESSION['vercode_answer'] = $res['answer'];

		return $res['question'];
	}
}
 ?>